/**
 * 
 */
package lt.vin.exaatto.server.dao;

import java.util.List;

import lt.vin.exaatto.shared.Chat;


/**
 * @author Vincentas
 *
 */
public interface ChatDao {

	void save(Chat chat);
	
	Chat get(String chatId);

	/**
	 * Returns chats where user is member
	 * 
	 * @param user
	 *            User
	 * @return Returns list of chats where user is member. Empty list if no
	 *         found.
	 */
	List<Chat> getChats(String user);

	void delete(String chatId);

}
